import { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/login',
    name: 'login',
    meta: { title: '登录' },
    component: () => import('@/pages/login/index.vue')
  },
  {
    path: '/:pathMatch(.*)',
    name: '404',
    meta: { title: '404' },
    component: () => import('@/pages/NotFound/index.vue')
  },
  {
    path: '/workspace',
    name: 'workspace',
    meta: { title: '工作空间' },
    component: () => import('@/pages/workspace/index.vue')
  },
  {
    path: '/preview',
    name: 'preview',
    meta: { title: '预览' },
    component: () => import('@/pages/preview/index.vue')
  },
  {
    path: '/edit',
    name: 'edit',
    meta: { title: '在线编辑' },
    component: () => import('@/pages/edit/index.vue')
  }
] as RouteRecordRaw[]